#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package};

import org.apache.wicket.Session;
import org.apache.wicket.protocol.http.WebApplication;
import org.odlabs.wiquery.core.commons.IWiQuerySettings;
import org.odlabs.wiquery.core.commons.WiQuerySettings;
import org.odlabs.wiquery.core.commons.listener.JQueryUICoreRenderingListener;
import org.odlabs.wiquery.ui.themes.IThemableApplication;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Application object for your web application. If you want to run this
 * application without deploying, run the Start class.
 * 
 * @see ${package}.Start${symbol_pound}main(String[])
 */
public class WicketApplication  extends WebApplication implements IThemableApplication, IWiQuerySettings {
	// Constants
	private static final Logger LOGGER = LoggerFactory.getLogger(WicketApplication.class);

	/**
	 * Constructor
	 */
	public WicketApplication() {
		super();
	}

	/**
	 * @see org.apache.wicket.Application${symbol_pound}init()
	 */
	@Override
	protected void init() {
		super.init();
	}
	
	/**
	 * {@inheritDoc}
	 * @see org.odlabs.wiquery.ui.themes.IThemableApplication${symbol_pound}getTheme(org.apache.wicket.Session)
	 */
	public ResourceReference getTheme(Session session) {		
		return JQueryUICoreRenderingListener.getDefaultTheme();
	}
	
	/**
	 * {@inheritDoc}
	 * @see org.odlabs.wiquery.core.commons.IWiQuerySettings${symbol_pound}getWiQuerySettings()
	 */
	public WiQuerySettings getWiQuerySettings() {
		WiQuerySettings settings = new WiQuerySettings();

		return settings;
	}

	/**
	 * @see org.apache.wicket.Application${symbol_pound}getHomePage()
	 */
	@Override
	public Class<HomePage> getHomePage() {
		return HomePage.class;
	}

}
